<template>
  <div id="app">
    <button @click="getData">发送get请求</button>
    <ul class="nav" v-if="$route.meta.show">
      <li>
        <router-link to="/home">home</router-link>
      </li>
      <li>
        <router-link to="/personal">personal</router-link>
      </li>
    </ul>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {};
  },
  components: {},
  mounted() {},
  methods: {
    getData() {}
  }
};
</script>

<style lang="less">
.nav {
  display: flex;
  justify-content: space-around;
}
</style>
